import request from '@/utils/request'
//题目api

// 新增题目
export function addQuesstionBank(data) {
  return request({
    url: `/quesstionBank/save`,
    method: 'post',
    data
  })
}

export function getQuesstionBankList(params) {
  return request({
    url: '/quesstionBank/list',
    method: 'get',
    params
  })
}

export function deleteQuestion(params) {
  return request({
    url: `/quesstionBank/delete`,
    method: 'delete',
    params
  })
}

// 批量修改题库章节
export function batchUpdateChapter(data) {
  return request({
    url: `/quesstionBank/batchUpdateChapter`,
    method: 'post',
    data
  })
}
// 获取题目详情
export function getQuesstionBankDetails(params) {
  return request({
    url: '/quesstionBank/detail',
    method: 'get',
    params
  })
}

// 新增题目
export function batchAddQuesstionBank(data) {
  return request({
    url: `/quesstionBank/batchSave`,
    method: 'post',
    data
  })
}
